home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Totally AMOS
/
Totally AMOS - Issue 1 (1991-11)(Tucker, Len - Tucker, Anne).adf
/
source_progs
/
screenwipes_2.amos
/
screenwipes_2.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1991-10-04
|
2KB
|
70 lines
Curs Off : Flash Off : Cls 0
'************to view all the screen wipes just run this
'*********yet another fine example of peter hickman and his code!
'*********press keys 1-5 to view procedures
REDO:
'get screen from bank 14
Unpack 14 To 1
'put screen 0 in front again
Screen To Front 0
'point to screen 0
Screen 0
'put the new palette into screen 0
Get Palette(1)
'call screen proc
Repeat
K$=Inkey$
If K$="1" : APEAR_6[1,0] : DNE=True : End If
If K$="2" : SPLERGE_DOWN[3,1,0] : DNE=True : End If
If K$="3" : SPLERGE_RIGHT[3,1,0] : DNE=True : End If
If K$="4" : SPLERGE_LEFT[3,1,0] : DNE=True : End If
If K$="5" : SPLERGE_UP[3,1,0] : DNE=True : End If
Until DNE
Wait 30
Screen 0
Cls 0
Goto REDO
Procedure APEAR_6[SOURCE,DEST]
Shared X1,X2,Y1,Y2
Screen To Front DEST
Screen DEST
Get Palette SOURCE
X1=159 : Y1=127
X2=161 : Y2=129
Repeat
Screen Copy SOURCE,X1,Y1,X2,Y2 To DEST,X1,Y1
If X1>0 : Dec X1 : End If
If Y1>0 : Dec Y1 : End If
If X2<320 : Inc X2 : End If
If Y2<256 : Inc Y2 : End If
Until X2=320 and Y2=256
Screen SOURCE
End Proc
Procedure SPLERGE_DOWN[SPEED,SOURCE,DEST]
For LOP=200-SPEED To 0 Step -SPEED
For LOP1=0 To LOP Step SPEED
Screen Copy SOURCE,0,LOP,320,LOP+SPEED To DEST,0,LOP1
Next LOP1
Next LOP
End Proc
Procedure SPLERGE_RIGHT[SPEED,SOURCE,DEST]
For LOP=320-SPEED To 0 Step -SPEED
For LOP1=0 To LOP Step SPEED
Screen Copy SOURCE,LOP,0,LOP+SPEED,200 To DEST,LOP1,0
Next LOP1
Next LOP
End Proc
Procedure SPLERGE_LEFT[SPEED,SOURCE,DEST]
For LOP=0 To(320-SPEED) Step SPEED
For LOP1=320 To LOP Step -SPEED
Screen Copy SOURCE,LOP,0,LOP+SPEED,200 To DEST,LOP1,0
Next LOP1
Next LOP
End Proc
Procedure SPLERGE_UP[SPEED,SOURCE,DEST]
For LOP=0 To(200-SPEED) Step SPEED
For LOP1=200 To LOP Step -SPEED
Screen Copy SOURCE,0,LOP,320,LOP+SPEED To DEST,0,LOP1
Next LOP1
Next LOP
End Proc